package com.fwmagic.springcloud.service;

import com.fwmagic.springcloud.entities.CommonResult;
import com.fwmagic.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @description:
 * 9003，,9004 服务关闭后
 * 方法的服务降级处理
 * @author: fangwei
 * @date: 2022/5/6
 **/
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回 --PaymentFallbackService", new Payment(id, "errorSerial...."));
    }
}
